<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo $_BASE_DIR?>css_v1/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $_BASE_DIR?>css_v1/select.css" rel="stylesheet" type="text/css" />
    <!-- tips -->
    <link type="text/css" href="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.tooltip.css" rel="stylesheet">
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.position.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.tooltip.js"></script>
    <!--<script type="text/javascript" src="<?php /*echo $_BASE_DIR*/?>js_v1/jquery.js"></script>-->
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.idTabs.min.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/select-ui.min.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>javascripts/commond.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>baidu_editor/ueditor.config.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.datetimepicker.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.DatePicker.js"></script>
<!-- 编辑器源码文件 -->
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>baidu_editor/ueditor.all.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="<?php echo $_BASE_DIR?>baidu_editor/lang/zh-cn/zh-cn.js"></script>
<link href="<?php echo $_BASE_DIR?>uploadify/css/uploadify.css" rel="stylesheet" type="text/css" />

<style type="text/css">
#header {
  height: 85px
}

#leftside,#container,#splitBar,#splitBarProxy {
  top: 90px
}
.forminfo li label {
    width: 150px;

}
</style>
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
    width : 345       
  });
  $(".select2").uedSelect({
    width : 167  
  });
  $(".select3").uedSelect({
    width : 110
  });

    //启动tip功能
    $( document ).tooltip({
        position: { my: "left+15 center", at: "right center" }
    });
});
</script>
<script src="<?php echo $_BASE_DIR?>javascripts/jquery.ocupload.min.js"
  type="text/javascript"></script>


  
<script type="text/javascript">
function ajaxpost(form)
{
  var data = $(form).serialize();
  $.post(form.action, data,function(result){
    result =  eval("("+result+")");
    alert(result.message);
    if( result.forwardUrl !== 'null' && result.forwardUrl !== null )
    {
      window.location.href = result.forwardUrl;
    }
    });
  return false;
}
</script>

</head>

<body>

     <div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">主页</a></li>
   
    </ul>
    </div>

    <div class="formbody">
    <div id="usual1" class="usual">
  	<div id="tab1" class="tabson">
    <ul class="forminfo">
     <form aaction="<?php echo url("live/add")?>" method="post" onsubmit="return ajaxpost(this)" >
     	<?php 
              // $viplevel=viplevel::find('acct_id = ?',$_SESSION['acct']['id'])->setColumns('id,title')->getAll();
              if(!empty($info->id)){
                // $viparr= explode(",", $video->free_viplevelids);
              }else{
                $info = new liveapply;
                $viparr= array();
              }
              $upload_url = url('admin::interface/uploadeditor');
              $host = Helper_Common::getRequestHost();
        ?>
        <input type="hidden" name="id" value="<?php echo $info->id?>">
		<li>
            <label>申请人名 </label>
        	<input type="text" id="apply_name" name="apply_name" value="<?php echo $info->apply_name?>" class="required dfinput" qform_group_id="" title="申请人名" placeholder="名称">
        </li>
        <li>
            <label>联系电话 </label>
            <input type="text" id="tel" name="tel" value="<?php echo $info->tel?>" class="required dfinput" qform_group_id="" title="联系电话" placeholder="联系电话">
        </li>

        <li>
            <label>价格 </label>
            <input type="number" id="price" name="price" value="<?php echo $info->price?>" class="required dfinput" qform_group_id="" title="价格" placeholder="价格">
        </li>
        <li>
            <label>直播标题 </label>
        	<input type="text" id="title" name="title" value="<?php echo $info->title?>" class="required dfinput" qform_group_id="" title="直播标题" placeholder="直播标题">
        </li>
        <li>
            <label>推流地址 </label>
        	<input type="text" id="push_url" value="<?php echo $info->push_url?>" name="push_url" class="required dfinput" qform_group_id="" title="推流地址" placeholder="推流地址">
        </li>
        <li>
            <label>直播封面 </label>
        	<input type="text" id="pic" value="<?php echo $info->pic?>" name="pic" class="required dfinput" qform_group_id="" title="直播封面" placeholder="直播封面">
            <img src="<?php echo $info->pic?>" style="width: 100px;height: 40px">
        </li>
        <li>
            <label>审核意见 </label>
            <textarea name="apply_msg" id="apply_msg" class="required dfinput" style="height: 150px"><?php echo $info->apply_msg?></textarea>
        	
        </li>
        <li>
			<label>直播简介</label>
			<textarea name="dec" id="dec" class="required dfinput" style="height: 150px"><?php echo $info->dec?></textarea>
		</li>


		<li>
            <label>状态 </label>
	        <div class="vocation">
	        	<div class="uew-select">
	        		<select id="status" name="status" class="select3" qform_group_id="" placeholder="是否上架" style="width: 102px;">
						<option value="1" <?php if($info->status==1) echo('selected="selected"')?>>待处理</option>
                        <option value="99" <?php if($info->status==99) echo('selected="selected"')?>>通过</option>
						<option value="2" <?php if($info->status==2) echo('selected="selected"')?>  >不通过</option>
					</select>
				</div>
			</div>

        

	  <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="保存"/></li>
	
	</form>
    </ul></div></div></div></body></html>
    

